package com.artisan.domain.repositoryInterface;

import com.artisan.domain.entity.MRoleGroup;
import com.artisan.domain.entity.MStartPage;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

/**
 * 角色组数据访问接口
 */
public interface IRoleGroupRepository extends JpaRepository<MRoleGroup, Integer> {
    @Query(value = "select c from MRoleGroup c where c.status=1 order by c.addDate desc ")
    Page<MRoleGroup> findList(Pageable pageable);
}
